﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyProjectDB.Models
{
    [Table("LogInOuts")]
    public class LogInOutModels
    {
        [Key]
        public int LogInOutid { set; get; }

        [MaxLength(10, ErrorMessage = "UserId must be 10 characters or less")]
        public string LogInOutUserId { set; get; }

        [Timestamp]
        public DateTime LogInOutDate { set; get; }

        public DateTime LogInOutEntryDate { set; get; }

        public DateTime LogInOutEntryTime { set; get; }

        public DateTime LogInOutExitDate { set; get; }

        public DateTime LogInOutExitTime { set; get; }

        [MaxLength(1000)]
        public string LogInOutComment { set; get; }

        //[ForeignKey("UserModels")]
        //public int UserId { get; set; }

        //public virtual UserModels User { get; set; }
    }
}
